package com.example.testingscaffolding;

import com.example.testingscaffolding.AOPservlce.SomeServices;
import com.example.testingscaffolding.AppBeanpk5.AppBean;
import com.example.testingscaffolding.AppBeanpk6.NestAppBean;
import com.example.testingscaffolding.AppBeanpk8.CollectionConf;
import com.example.testingscaffolding.Multl.MultlConfigService;
import com.example.testingscaffolding.Read.ReadConfig;
import com.example.testingscaffolding.Some.SomeService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class TestingscaffoldingApplicationTests {

    @Autowired
    private SomeService SomeService;
    @Test
    void contextLoads() {
        SomeService.printValue();
    }

    @Autowired
    private ReadConfig readConfig;
    @Test
    void test02() {
        readConfig.print();
    }

    @Autowired
    private MultlConfigService multlConfigService;
    @Test
    void test03() {
        multlConfigService.print();
    }


    @Autowired
    private AppBean appBean;
    @Test
    void test05(){
        System.out.println("appBean="+appBean.toString());
        System.out.println("appBean.getClass() = "+appBean.getClass());
    }
    @Autowired
    private NestAppBean nestAppBean;
    @Test
    void test06(){
        System.out.println("nestAppBean="+nestAppBean);
    }


    @Autowired
    private CollectionConf collectionConf;
    @Test
    void test08(){
        System.out.println("collectionConf="+collectionConf);
    }

    @Autowired
    private SomeServices someServices;
    @Test
    void testLog(){
        someServices.query(201222100);
        someServices.save("大名",21);
        someServices.query(201224444);
        someServices.save("小米",21);
    }


}
